﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<asp:Panel ID="panel1" runat="server">
<script type="text/javascript">
    function clickzs(){
        var tt=document.getElementById('<%=txt征收许可证号.ClientID %>').value;
        var tt1=document.getElementById('<%=Text1.ClientID %>').value;
        var tt2=document.getElementById('<%=Text2.ClientID %>').value;
        var tt3=document.getElementById('<%=Text3.ClientID %>').value;
        tt='宁'+tt1+'府征字（'+tt2+'年第'+tt3+'号）';
        if(tt1!=''&&tt2!=''&&tt3!=''){
            document.getElementById('<%=txt征收许可证号.ClientID %>').value=tt;
            return true;
        }else{alert('请录入征收决定号！');return false;}
        
    }
    function OpenFileUpload(cqid, cid, pid, flag) {
        window.open('FileUpload1.aspx?usetype=9&pid=' + pid + '&cid=' + cid + '&cqid=' + cqid + '&flag=' + flag, '文件上传', 'height=600px,width=800px;toolbar =no,menubar=no, scrollbars=yes, resizable=no, location=no, status=yes');
    }
    window.onload=function aa(){
        var tt=document.getElementById('<%=txt提交状态.ClientID %>').value;
        var t1=document.getElementById('<%=btnSave.ClientID %>');
        var t2=document.getElementById('<%=btnUpfile.ClientID %>');
        if(tt=="1"){t1.style.display="none";t2.value="附件列表";}
        var t='<%=HttpContext.Current.Request["ID"] %>';
        if(t==null||t==""){t2.style.display="none";}
    };
    function ckNumber(obj) {
        var tt = 'ctl00_MainerRegion_EditZhengShouXukeControl___';
        var t1 = tt + obj;
        var ctrlTemp = document.getElementById(t1);
        if (ctrlTemp != null) {
            if (isNaN(ctrlTemp.value)) {
                alert("不是一个有效的数字，请重新输入 ！");
                ctrlTemp.value = '';
            }
        }
    }
    </script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
        margin-top: 1px">
        <tr>
            <td valign="middle" height="30">
                <font style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left; color: black">
                    &nbsp; 征收决定申请表  </font>
            </td>
        </tr>
    </table>
    <table class="window_tab_list">
        <tr>
            <th colspan="6" style="text-align: center; line-height: 20px;">
                项目情况表
            </th>
        </tr>
        <tr>
            <td colspan="2">
                申请日期
            </td>
            <td>
                <CBW:MPCalendar runat="server" ID="txt申请日期" />
            </td>
            <td colspan="2">
                征收决定号
            </td>
            <td>
                宁<input id="Text1" runat="server" type="text" style="border-bottom-width:1px; border-bottom-color:Black; width:50px;" />
                府征字（<input id="Text2" runat="server" type="text" style="border-bottom-width:1px; border-bottom-color:Black;width:40px;" />
                年第<input id="Text3" runat="server"  type="text" style="border-bottom-width:1px; border-bottom-color:Black;width:60px;" />号）
                <div style="display:none;">
                    <asp:TextBox ID="txt征收许可证号" runat="server" Width="250px"></asp:TextBox>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                申请单位
            </td>
            <td>
                <asp:Label runat="server" ID="lbl_申请单位"></asp:Label>
            </td>
            <td colspan="2">
                征收实施单位
            </td>
            <td>
                <asp:Label runat="server" ID="lbl_实施单位"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                项目名称
            </td>
            <td>
                <asp:Label runat="server" ID="lbl项目名称" Text=""></asp:Label>
            </td>
            <td colspan="2">
                项目地点
            </td>
            <td>
                <asp:Label runat="server" ID="lbl项目地址" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                概算评估机构
            </td>
            <td colspan="4">
                <asp:Label runat="server" ID="lbl评估机构" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                征收决定日期
            </td>
            <td>
                <CBW:MPCalendar runat="server" ID="txt拆迁开始日期" />
            </td>
            <td colspan="2">
                征收签约期限
            </td>
            <td>
                <asp:TextBox runat="server" ID="txt拆迁期限" onchange="ckNumber('txt拆迁期限')"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                征收部门
            </td>
            <td colspan="4">
                <asp:Label ID="lbl征收部门" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                征收部门联系人
            </td>
            <td>
                <asp:TextBox runat="server" ID="txt拆除单位负责人姓名"></asp:TextBox>
            </td>
            <td colspan="2">
                征收部门联系人电话
            </td>
            <td>
                <asp:TextBox runat="server" ID="txt联系方式"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="6">
                征收范围
            </td>
        </tr>
        <tr>
            <td colspan="6">
                <asp:TextBox runat="server" ID="txt拆迁范围" TextMode="MultiLine" Rows="5" Columns="100"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>被征收居民权证户数</td>
            <td>
                <asp:TextBox runat="server" ID="txt拆迁居民权证户数"  onchange="ckNumber('txt拆迁居民权证户数')"></asp:TextBox>
            </td>
            <td>
                被征收工企单位数
            </td>
            <td colspan="3">
                <asp:TextBox runat="server" ID="txt拆迁工企单位个数"  onchange="ckNumber('txt拆迁工企单位个数')"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="6" style="border: none; text-align: center;">
            <asp:LinkButton ID="LinkButton1" runat="server">征收范围历史修改记录查询</asp:LinkButton>&nbsp;&nbsp;
            <asp:Button ID="btnUpfile" runat="server" Text="附件上传" OnClientClick="return clickzs();" />&nbsp;&nbsp;
            <asp:Button ID="btnSave" runat="server" Text="保存" OnClientClick="return clickzs();" />&nbsp;&nbsp;
            <input type="button" value="返回" onclick="location.href='ZhengShouXuKeList.aspx?PID=<%=HttpContext.Current.Request["PID"] %>'"/>
            </td>
        </tr>
    </table>
            <div style="display:none;">
                <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
                <asp:TextBox ID="txtPID" runat="server"></asp:TextBox>
                <asp:TextBox ID="txt提交状态" runat="server"></asp:TextBox>
            </div>
    <CBW:MPPersistence  ID="Persistence1" runat="server"></CBW:MPPersistence>
</asp:Panel>